<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button id="btn1" onclick="test1()">开始</button>
		
		<script type="text/javascript">
			function test1()
			{
				var name=prompt("下一届奥运会举办地点：\n a.北京 \n b.东京 \n c.南京 \n d.巴黎 \n ");
				if(name=='d')
				{
					alert("恭喜你回答正确！")
				}
				else
				{
					alert("回答错误！！！")
				}
			}
		</script>
	</body>
</html>
